<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    <script>
    var oDate=new Date();
    var year=oDate.getFullYear();
    var mouth=oDate.getMonth()+1;
    var date=oDate.getDate();
    var hour=oDate.getHours();
    var minute=oDate.getMinutes();
    var second=oDate.getSeconds();
    var min=oDate.getMilliseconds();
    var day=oDate.getDay();
    console.log(oDate);
    console.log(year);
    console.log(mouth);
    console.log(date);
    console.log(hour);
    console.log(minute);
    console.log(second);
    console.log(min);
    console.log(day);
    </script>
</body>
</html>